dart around like a headless chicken

Translations
courir partout comme un poulet sans tête
Definitions
To move around quickly and aimlessly, often in a state of panic or confusion, without any clear purpose or direction.